home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / rem_acc / 1liner15.zip / ANSTRIP.DOC < prev    next >
Text File  |  1996-01-14  |  1KB  |  38 lines

  1. ------------------------------------------------------------------------
  2. ANSTRIP   strip ANSI sequences          Ver 1.6 (c) 1994 Horst Schaeffer
  3. ------------------------------------------------------------------------
  4.  
  5. Syntax:  ANSTRIP < in.txt > out.txt [/p]
  6.  
  7. ANSTRIP reads from STDIN and writes to STDOUT. File size not limited.
  8.  
  9. ANSI sequences are removed if they meet the following specifications:
  10.  
  11.    + starting with ESC, "["
  12.  
  13.    + followed by numbers, semicolons, strings in quotes or "?", "="
  14.      or variables (like %1, %%a, %VAR%)
  15.  
  16.    + terminated by any character from "A" to "Z" (upper or lower case)
  17.      or "@"
  18.  
  19. With Option /p only keyboard-redefinition sequences are removed
  20. (sequences terminated by "p"). Please note that this is NOT a 100% safe
  21. protection against ANSI bombs in BAT files (especially when variables
  22. are used).
  23.  
  24. ANSTRIP displays a message (to STDERR) and returns errorlevel 1
  25. if any "p"-sequences were removed.
  26.  
  27. Help message on command errors (errorlevel 255).
  28.  
  29. DISCLAIMER:
  30. -----------
  31.  
  32. There are no warranties of any kind, nor any liability by the author.
  33. Users accept full responsibility for the use they make of the software
  34. and for any damage caused thereby.
  35.  
  36. = 09 FEB 1995
  37.  
  38.